//
//  Configuration.m
//  X2AX2B
//
//  Created by hotabbit on 14-8-2.
//  Copyright (c) 2014年 hotabbit. All rights reserved.
//

#import "Configuration.h"

@interface Configuration()
{
    NSMutableDictionary* configData;
}

@property (nonatomic) NSMutableArray* devices;
@end

@implementation Configuration
//@synthesize stationName = _stationName;

+ (Configuration *)instance
{
    static Configuration* _instance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [[Configuration alloc] init];
    });
    
    return _instance;
}
- (NSArray *) devices
{
    if (_devices == nil) {
        _devices = [[NSMutableArray alloc] init];
    }
    
    return _devices;
}

-(NSString *)startVolt
{
    if (_startVolt == nil) {
        _startVolt = @"1";
    }
    
    return _startVolt;
}

-(NSString *)stopVolt
{
    if (_stopVolt == nil) {
        _stopVolt = @"5000";
    }
    
    return _stopVolt;
}

-(NSString *)stepCount
{
    if (_stepCount == nil){
        _stepCount = @"500";
    }
    return _stepCount;
}

-(NSString *)measVoltTolerance
{
    if (_measVoltTolerance == nil){
        _measVoltTolerance = @"0.08";
    }
    return _measVoltTolerance;
}

-(NSString *)chananel
{
    if (_chananel == nil){
        _chananel = @"1";
    }
    return _chananel;
}

- (NSString *)setPowerSupVoltage
{
    if (_setPowerSupVoltage == nil){
        _setPowerSupVoltage = @"5000";
    }
    return _setPowerSupVoltage;
}

- (NSString *)dmmMeasVolt
{
    return _dmmMeasVolt;
}

- (NSString *)measBoardMeasVolt
{
    return _measBoardMeasVolt;
}

- (NSString *)save
{
    return _save;
}

- (NSString *)stop
{
    return _stop;
}

- (NSString *)measureBoard
{
    return _measureBoard;
}

- (NSString *)measureVoltIndex
{
    return _measureVoltIndex;
}

- (NSString *)setReadVoltOffset
{
    return _setReadVoltOffset;
}

- (NSString *)getReadVoltOffset
{
    return _getReadVoltOffset;
}

- (NSString *)range
{
    if (_range == nil){
        _range = @"5";
    }
    return _range;
}

@end
